package zhang.com.ssm.po;

import java.util.ArrayList;
import java.util.List;

public class AuthorInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AuthorInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAutIdIsNull() {
            addCriterion("Aut_id is null");
            return (Criteria) this;
        }

        public Criteria andAutIdIsNotNull() {
            addCriterion("Aut_id is not null");
            return (Criteria) this;
        }

        public Criteria andAutIdEqualTo(Integer value) {
            addCriterion("Aut_id =", value, "autId");
            return (Criteria) this;
        }

        public Criteria andAutIdNotEqualTo(Integer value) {
            addCriterion("Aut_id <>", value, "autId");
            return (Criteria) this;
        }

        public Criteria andAutIdGreaterThan(Integer value) {
            addCriterion("Aut_id >", value, "autId");
            return (Criteria) this;
        }

        public Criteria andAutIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("Aut_id >=", value, "autId");
            return (Criteria) this;
        }

        public Criteria andAutIdLessThan(Integer value) {
            addCriterion("Aut_id <", value, "autId");
            return (Criteria) this;
        }

        public Criteria andAutIdLessThanOrEqualTo(Integer value) {
            addCriterion("Aut_id <=", value, "autId");
            return (Criteria) this;
        }

        public Criteria andAutIdIn(List<Integer> values) {
            addCriterion("Aut_id in", values, "autId");
            return (Criteria) this;
        }

        public Criteria andAutIdNotIn(List<Integer> values) {
            addCriterion("Aut_id not in", values, "autId");
            return (Criteria) this;
        }

        public Criteria andAutIdBetween(Integer value1, Integer value2) {
            addCriterion("Aut_id between", value1, value2, "autId");
            return (Criteria) this;
        }

        public Criteria andAutIdNotBetween(Integer value1, Integer value2) {
            addCriterion("Aut_id not between", value1, value2, "autId");
            return (Criteria) this;
        }

        public Criteria andAutNameIsNull() {
            addCriterion("Aut_name is null");
            return (Criteria) this;
        }

        public Criteria andAutNameIsNotNull() {
            addCriterion("Aut_name is not null");
            return (Criteria) this;
        }

        public Criteria andAutNameEqualTo(String value) {
            addCriterion("Aut_name =", value, "autName");
            return (Criteria) this;
        }

        public Criteria andAutNameNotEqualTo(String value) {
            addCriterion("Aut_name <>", value, "autName");
            return (Criteria) this;
        }

        public Criteria andAutNameGreaterThan(String value) {
            addCriterion("Aut_name >", value, "autName");
            return (Criteria) this;
        }

        public Criteria andAutNameGreaterThanOrEqualTo(String value) {
            addCriterion("Aut_name >=", value, "autName");
            return (Criteria) this;
        }

        public Criteria andAutNameLessThan(String value) {
            addCriterion("Aut_name <", value, "autName");
            return (Criteria) this;
        }

        public Criteria andAutNameLessThanOrEqualTo(String value) {
            addCriterion("Aut_name <=", value, "autName");
            return (Criteria) this;
        }

        public Criteria andAutNameLike(String value) {
            addCriterion("Aut_name like", value, "autName");
            return (Criteria) this;
        }

        public Criteria andAutNameNotLike(String value) {
            addCriterion("Aut_name not like", value, "autName");
            return (Criteria) this;
        }

        public Criteria andAutNameIn(List<String> values) {
            addCriterion("Aut_name in", values, "autName");
            return (Criteria) this;
        }

        public Criteria andAutNameNotIn(List<String> values) {
            addCriterion("Aut_name not in", values, "autName");
            return (Criteria) this;
        }

        public Criteria andAutNameBetween(String value1, String value2) {
            addCriterion("Aut_name between", value1, value2, "autName");
            return (Criteria) this;
        }

        public Criteria andAutNameNotBetween(String value1, String value2) {
            addCriterion("Aut_name not between", value1, value2, "autName");
            return (Criteria) this;
        }

        public Criteria andDocIdIsNull() {
            addCriterion("Doc_id is null");
            return (Criteria) this;
        }

        public Criteria andDocIdIsNotNull() {
            addCriterion("Doc_id is not null");
            return (Criteria) this;
        }

        public Criteria andDocIdEqualTo(Integer value) {
            addCriterion("Doc_id =", value, "docId");
            return (Criteria) this;
        }

        public Criteria andDocIdNotEqualTo(Integer value) {
            addCriterion("Doc_id <>", value, "docId");
            return (Criteria) this;
        }

        public Criteria andDocIdGreaterThan(Integer value) {
            addCriterion("Doc_id >", value, "docId");
            return (Criteria) this;
        }

        public Criteria andDocIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("Doc_id >=", value, "docId");
            return (Criteria) this;
        }

        public Criteria andDocIdLessThan(Integer value) {
            addCriterion("Doc_id <", value, "docId");
            return (Criteria) this;
        }

        public Criteria andDocIdLessThanOrEqualTo(Integer value) {
            addCriterion("Doc_id <=", value, "docId");
            return (Criteria) this;
        }

        public Criteria andDocIdIn(List<Integer> values) {
            addCriterion("Doc_id in", values, "docId");
            return (Criteria) this;
        }

        public Criteria andDocIdNotIn(List<Integer> values) {
            addCriterion("Doc_id not in", values, "docId");
            return (Criteria) this;
        }

        public Criteria andDocIdBetween(Integer value1, Integer value2) {
            addCriterion("Doc_id between", value1, value2, "docId");
            return (Criteria) this;
        }

        public Criteria andDocIdNotBetween(Integer value1, Integer value2) {
            addCriterion("Doc_id not between", value1, value2, "docId");
            return (Criteria) this;
        }

        public Criteria andAutUnitsIsNull() {
            addCriterion("Aut_Units is null");
            return (Criteria) this;
        }

        public Criteria andAutUnitsIsNotNull() {
            addCriterion("Aut_Units is not null");
            return (Criteria) this;
        }

        public Criteria andAutUnitsEqualTo(String value) {
            addCriterion("Aut_Units =", value, "autUnits");
            return (Criteria) this;
        }

        public Criteria andAutUnitsNotEqualTo(String value) {
            addCriterion("Aut_Units <>", value, "autUnits");
            return (Criteria) this;
        }

        public Criteria andAutUnitsGreaterThan(String value) {
            addCriterion("Aut_Units >", value, "autUnits");
            return (Criteria) this;
        }

        public Criteria andAutUnitsGreaterThanOrEqualTo(String value) {
            addCriterion("Aut_Units >=", value, "autUnits");
            return (Criteria) this;
        }

        public Criteria andAutUnitsLessThan(String value) {
            addCriterion("Aut_Units <", value, "autUnits");
            return (Criteria) this;
        }

        public Criteria andAutUnitsLessThanOrEqualTo(String value) {
            addCriterion("Aut_Units <=", value, "autUnits");
            return (Criteria) this;
        }

        public Criteria andAutUnitsLike(String value) {
            addCriterion("Aut_Units like", value, "autUnits");
            return (Criteria) this;
        }

        public Criteria andAutUnitsNotLike(String value) {
            addCriterion("Aut_Units not like", value, "autUnits");
            return (Criteria) this;
        }

        public Criteria andAutUnitsIn(List<String> values) {
            addCriterion("Aut_Units in", values, "autUnits");
            return (Criteria) this;
        }

        public Criteria andAutUnitsNotIn(List<String> values) {
            addCriterion("Aut_Units not in", values, "autUnits");
            return (Criteria) this;
        }

        public Criteria andAutUnitsBetween(String value1, String value2) {
            addCriterion("Aut_Units between", value1, value2, "autUnits");
            return (Criteria) this;
        }

        public Criteria andAutUnitsNotBetween(String value1, String value2) {
            addCriterion("Aut_Units not between", value1, value2, "autUnits");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}